import service from '@/utils/request'

//用户登录
export const login = (data) => { return service({ url: "/base/login", method: 'post', data: data }) }
//获取验证码
export const captcha = (data) => { return service({ url: "/base/captcha", method: 'post', data: data }) }
//用户注册
export const register = (data) => { return service({ url: "/user/register", method: 'post', data: data }) }
//修改密码
export const changePassword = (data) => { return service({ url: "/user/changePassword", method: 'post', data: data }) }
//分页获取用户列表
export const getUserList = (data) => { return service({ url: "/user/getUserList", method: 'post', data: data }) }
//通过id获取用户
export const getUserById = (data) => { return service({ url: "/user/getUserById", method: 'post', data: data }) }
//通过uuid获取用户信息
export const getUserByUuid = (data) => { return service({ url: "/user/getUserByUuid", method: 'post', data: data }) }
//更新用户
export const updateUser = (data) => { return service({ url: "/user/updateUser", method: 'post', data: data }) }
//删除用户
export const deleteUser = (data) => { return service({ url: "/user/deleteUser", method: 'post', data: data }) }
//更新用户角色
export const updateUserRole = (data) => { return service({ url: "/user/updateUserRole", method: 'post', data: data }) }